try:
    n = int(input('number: '))
    result = 100 / n
except (ValueError, ZeroDivisionError):
    print('invalid number')
except (KeyboardInterrupt, EOFError):
    print('Bye-bye')
else:
    print(result)
finally:
    print('Done')